//
// Created by sgyt on 2020/1/10.
// getc 单个
#include <stdio.h>
#include <stdlib.h>

int main(int argc,char *argv[]){
    int c;
    while((c = getc(stdin)) != EOF){
        if(putc(c,stdout) == EOF){
            perror("output error\n");
        }
    }

    if(ferror(stdin)){
        perror("input error\n");
    }
    return 0;
}
